﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Refugees.Repositories
{
    internal class ModelRepository
    {
        static internal Models.Entities Context { get; set; } = new Models.Entities();
        static internal Models.User User { get; set; }

        static internal Models.PersonalData PersonalData { get; set; }

        static internal bool Save()
        {
            try
            {
                Context.SaveChanges();
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }
    }
}
